home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14987 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: gemini.coi.pw.edu.pl!news-adm@io.coi.pw.edu.pl
  2. From: "Marek Brudka (A. Pacut)" <brudka@ia.pw.edu.pl>
  3. Newsgroups: comp.os.qnx,comp.lang.c++,comp.lang.c
  4. Subject: struct stat.st_type in Watcom C/C++ v9.5 for QNX
  5. Date: Tue, 02 Apr 1996 20:59:39 +0200
  6. Organization: Warsaw University of Technology
  7. Message-ID: <3161791B.5D8F@ia.pw.edu.pl>
  8. NNTP-Posting-Host: bobas.ia.pw.edu.pl
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-2
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 3.0b2 (X11; I; SunOS 5.4 sun4c)
  13.  
  14. Hi,
  15. According to the "WATCOM C LIBRARY REFERENCE FOR QNX" the structure stat
  16. in sys/stat.h should contain the field _ftype_t st_type that allows to
  17. identify the type of given file i.e if it is fifo, regular, directory
  18. etc. Unfortunatelly there is no st_type in this structure. Moreover
  19. there is no field of _ftype_t in the structure stat that makes me able
  20. to recognize the file (althought the field st_spare0 is the appropriate
  21. type, its values are usually useless). Could anybody tell me then what
  22. is the way of checking the type of a file?
  23.  
  24.                     Thanks
  25.                     Marek Brudka
  26.                     brudka@ia.pw.edu.pl
  27.